package com.hxkcloud.patient.aerotel.util;

import android.util.Log;

import java.io.Serializable;

/**
 * Created by songyuequan on 2016/12/16.
 */
public class Picture implements Serializable {
    private String path;
    private boolean takephoto;
    private String zoomPath;

    public Picture(String path, boolean takephoto) {
        this.path = path;
        this.takephoto = takephoto;
            int pointIndex = path.lastIndexOf(".");
            int slashIndex = path.lastIndexOf("/");
            this.zoomPath = path.substring(0, slashIndex + 1)
                    + path.substring(slashIndex + 1, pointIndex) + "_tmp" + System.currentTimeMillis()
                    + path.substring(pointIndex);
        Log.e("Picture",path+zoomPath);
    }

    public Picture(String path, boolean takephoto, String zoomPath) {
        this.path = path;
        this.takephoto = takephoto;
        this.zoomPath = zoomPath;
    }


    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public boolean isTakephoto() {
        return takephoto;
    }

    public void setTakephoto(boolean takephoto) {
        this.takephoto = takephoto;
    }

    public String getZoomPath() {
        return zoomPath;
    }

    public void setZoomPath(String zoomPath) {
        this.zoomPath = zoomPath;
    }
}
